﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarAppDto.Base;
using CarAppDto.CarType.CountryDtos;
using FluentValidation;

namespace CarAppDto.CarType.VehicleSeriesDtos
{
    public class ReqCarPartsVehicleSeriesValidator : AbstractValidator<ReqCarPartsVehicleSeries>
    {
        /// <summary>
        /// 校验规则写到校验类的构造方法中
        /// </summary>
        public ReqCarPartsVehicleSeriesValidator()
        {
            RuleFor(x => x.VehicleSeriesId).NotEmpty();
        }
    }
    public class ReqCarPartsVehicleSeries : BaseAddModel
    {
      
        /// <summary>
        /// 配件Id列表
        /// </summary>
        public List<string> CarPartsList { get; set; } = new List<string>();

        /// <summary>
        /// 所属车系代码（车系ID）
        /// </summary>
        public string? VehicleSeriesId { get; set; }
    }
}
